<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>销售退货单创建</title>
    <link rel="stylesheet" href="http://static-online.zhaogangtest.com/publicresource/css/bootstrap-table.css">
    <link rel="stylesheet" href="../../../resources/public/css/bootstrap-table-fixed-columns.css">
    <link rel="stylesheet" href="http://static-online.zhaogangtest.com/publicresource/control/daterangpicker/daterangepicker-bs3.css">
    <link rel="stylesheet" href="../../../resources/public/css/table.css">
    <link rel="stylesheet" href="../../../resources/public/css/iconfont.min.css">
    <link rel="stylesheet" href="../../../resources/public/css/scmstrap.css">
</head>

<body>
    <div class="main">
        <!-- 条件区域 -->
        <div class="form-list">
            <div class="group group-data">
                <label><b class="must">*</b>制单日期</label>
                <div class="scm-input-wrap">
                    <i class="anticon icon-calendar"></i>
                    <input type="text" class="scm-input active" id="datepicker" placeholder="制单日期">
                </div>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>退货仓库</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" class="scm-input hand" readonly="" placeholder="长达中板厂库">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>开单类型</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" disabled="disabled" class="scm-input hand scm-input-read" readonly="" placeholder="提单开单">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>销售地区</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" disabled="disabled" class="scm-input scm-input-read hand" readonly="" placeholder="江阴">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group group-select group-selectSearch" style="width:50%;">
                <label><b class="must">*</b>购货单位</label>
                <div class="selectshowAction scm-input-wrap condition-msg-style  selectshow" id="company">
                    <input type="text" disabled="disabled" class="scm-input scm-input-read" placeholder=""> </div>
                <div class="select-search select group-select-special" style="display: none;">
                    <div class="select-search-container" id="companywrap">
                    </div>
                </div>
                <span class="condition-msg">余额15151515</span>
            </div>
            <div class="group group-select  group-selectSearch" style="width: 50%;">
                <label><b class="must">*</b>结算单位</label>
                <div class="selectshowAction scm-input-wrap  selectshow" id="company1">
                    <input type="text" disabled="disabled" class="scm-input scm-input-read" placeholder="">
                </div>
                <div class="select-search select" style="display: none;">
                    <div class="select-search-container" id="companywrap1">
                    </div>
                </div>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>收货方式</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" class="scm-input hand" readonly="" placeholder="按吨">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>业务机构</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" disabled="disabled" class="scm-input scm-input-read hand" readonly="" placeholder="长达钢铁">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group group-select">
                <label><b class="must">*</b>业务部门</label>
                <div class="selectshow selectshowAction scm-input-wrap">
                    <input type="text" disabled="disabled" class="scm-input scm-input-read hand" readonly="" placeholder="销售部">
                </div>
                <ul class="select" style="display: none;">
                    <li>经销商销售</li>
                    <li>未结单</li>
                    <li>已结单</li>
                </ul>
            </div>
            <div class="group">
                <label>
                    <b class="must">*</b>制单人</label>
                <div class="scm-input-wrap">
                    <input type="text" class="scm-input scm-input-read" readonly value="admin">
                </div>
            </div>
            <div class="group" style="width: 100%;">
                <label>
                    备注</label>
                <div class="scm-input-wrap">
                    <input type="text" class="scm-input">
                </div>
            </div>
        </div>
        <!-- 按钮 -->
        <div class="operation">
            <div class="conditionbtn">
                <button class="scm-btn blue">
                    <i class="anticon icon-save"></i>保存</button>
                <button class="scm-btn">
                    <i class="anticon icon-closecircle"></i>取消</button>
            </div>
            <div class="scm-btn-group fr">
                <button class="scm-btn btn-goods">
                    <i class="anticon icon-isv"></i>提单明细
                </button>
                <button class="scm-btn btn-disable-style">
                    <i class="anticon icon-isv"></i>计划物资
                </button>
                <button class="scm-btn btn-delete-item">
                    <i class="anticon icon-delete"></i>删除
                </button>
            </div>
        </div>
        <div class="box-table">
            <table class="table table-condensed" id="table-parent"></table>
        </div>
    </div>
    <!-- 删除 -->
    <div class="layer-delete-item" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list form-list-btn-inner nofloat">
                <p class="layer-tips"><i class="anticon icon-exclamationcircle fs17 brown"></i>请选择退货明细</p>
            </div>
        </div>
    </div>
    <!--start--提单明细-->
    <div class="layer-goods" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        提单号</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        订单号</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-select">
                    <label>
                        购货单位</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" disabled="disabled" class="scm-input hand scm-input-read" readonly="" placeholder="全部">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group group-select">
                    <label>
                        品名</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="全部">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group">
                    <label>
                        规格</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-select  group-selectSearch">
                    <label>制单人</label>
                    <div class="selectshowAction scm-input-wrap  selectshow" id="company">
                        <input type="text" class="scm-input" placeholder="">
                    </div>
                    <div class="select-search select" style="display: none;">
                        <div class="select-search-container" id="companywrap">
                        </div>
                    </div>
                </div>
                <div class="group">
                    <label>
                        备注</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-data">
                    <label>创建时间</label>
                    <div class="scm-input-wrap">
                        <i class="anticon icon-calendar"></i>
                        <input type="text" class="scm-input active" id="datepicker1" placeholder="开始时间  ~  结束时间">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                <div class="conditionbtn">
                    <button class="scm-btn blue">
                        <i class="anticon icon-search1"></i>查询</button>
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>重置</button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-goods"></table>
            </div>
        </div>
    </div>
    <script src="http://static-online.zhaogangtest.com/publicresource/js/require.js"></script>
    <script>
    var page;

    require.config({
        paths: {
            "jquery": "../../../resources/public/js/jquery.min",
            "bootstrap": 'http://static-online.zhaogangtest.com/publicresource/js/bootstrap.min',
            // "bootstrap-table": "http://static-online.zhaogangtest.com/publicresource/js/bootstrap-table",
            "bootstrap-table": "../../../resources/public/js/bootstrap-table",
            "moment": "http://static-online.zhaogangtest.com/publicresource/control/daterangpicker/moment.min",
            "daterangepicker": "../../../resources/public/js/daterangepicker",

            "layer": 'http://static-online.zhaogangtest.com/publicresource/control/layer/layer.min',
            "public": "../../../resources/public/js/public",
            "chinese": "../../../resources/public/js/chinese",
            "bootstrap-table-fixed": "../../../resources/public/js/bootstrap-table-fixed-columns",
            "autocomplete": "../../../resources/public/js/jquery.autocomplete",
        },
        shim: {
            "jquery": {
                exports: ['jQuery', '$']
            },
            "bootstrap": {
                deps: ["jquery"]
            },
            "bootstrap-table": {
                deps: ["jquery", "bootstrap"]
            },
            "bootstrap-table-fixed": {
                deps: ["bootstrap-table"]
            },
            "layer": {
                deps: ["jquery"],
                exports: "layer"
            },
            "autocomplete": {
                deps: ['jquery']
            },
            "moment": {
                deps: ['jquery']
            },
            "daterangepicker": {
                deps: ["jquery", "moment"],
                exports: "daterangepicker"
            },
            "chinese": {
                deps: ["jquery", "bootstrap-table"],
            },

            "public": {
                deps: ["jquery", "bootstrap-table", "moment", "daterangepicker"]
            }
        }
    });
    require(["autocomplete", "public", "layer", "chinese", "bootstrap-table-fixed"], function() {
        layer.config({
            path: 'http://static-online.zhaogangtest.com/publicresource/control/layer/'
        });
        $(function() {
            page = {
                init: function() {
                    this.bootstrapTable();
                    this.autocomplete();
                    this.fn_layer();

                    var that = this;
                    $(window).resize(function() {
                        $('#table-parent').bootstrapTable('resetView', {
                            height: that.getHeight()
                        });
                        $('.daterangepicker').hide()
                    });
                    $.daterangepicker("#datepicker", {
                        singleDatePicker: true,
                    });
                    $.daterangepicker("#datepicker1", {
                        singleDatePicker: false,
                    });

                },
                bootstrapTable: function() {
                    $('#table-parent').bootstrapTable({
                        pagination: true, //在表格底部显示分页工具栏
                        pageSize: 50,
                        pageNumber: 1,
                        pageList: [10, 25, 50, 100],
                        height: page.getHeight(),
                        showFooter: true,
                        showColumns: false,
                        showRefresh: false,
                        //                    showToggle:true,
                        search: false,
                        //                    showPaginationSwitch:true,
                        //    detailView: true,
                        //   detailFormatter: page.showdetail,
                        // detailFormatter: this.showChild,
                        // onExpandRow: this.expandRow,
                        // onCollapseRow: this.collapseRow,
                        locales: 'zh-CN',
                        fixedColumns: false,
                        fixedNumber: 1,
                        url: '../data/erp/tablelist-salesreturn-create.json',
                        sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                        columns: [{
                            "field": "n0",
                            "title": "序号",
                            formatter: function(value, row, index) {
                                return index + 1
                            },
                            footerFormatter: "合计"
                        }, {
                            "field": "n1",
                            "title": "库房",
                        }, {
                            "field": "n2",
                            "title": "品名",
                        }, {
                            "field": "n3",
                            "title": "材质",
                        }, {
                            "field": "n4",
                            "title": "规格",
                        }, {
                            "field": "n5",
                            "title": "标准",

                        }, {
                            "field": "n6",
                            "title": "产品类型",
                        }, {
                            "field": "n7",
                            "title": "件支数",
                        }, {
                            "field": "n8",
                            "title": "指定长度",
                        }, {
                            "field": "n9",
                            "title": "品质",
                        }, {
                            "field": "n10",
                            "title": "计量方式",
                        }, {
                            "field": "n11",
                            "title": "交货状态",
                        }, {
                            "field": "n12",
                            "title": "<b class='must'>*</b>&nbsp;退货数量",
                        }, {
                            "field": "n13",
                            "title": "<b class='must'>*</b>&nbsp;退货重量",
                        }, {
                            "field": "n14",
                            "title": "<b class='must'>*</b>&nbsp;含税单价",
                        }, {
                            "field": "n15",
                            "title": "<b class='must'>*</b>&nbsp;含税金额",
                        }, {
                            "field": "n16",
                            "title": "提单明细号",
                        }, {
                            "field": "n17",
                            "title": "备注",
                        }]
                    });
                },

                // fn_layer: function() {
                //     $(document).on('click', '.btn-adjust-price', function() {
                //         layer.open({
                //             type: 1, //page层
                //             area: ['1100px', '560px'],
                //             title: '选择定价',
                //             shadeClose: false,
                //             btn: ['保存', '取消'],
                //             shade: 0.01, //遮罩透明度
                //             moveType: 1, //拖拽风格，0是默认，1是传统拖动
                //             shift: -1, //0-6的动画形式，-1不开启
                //             content: $('.layer-initial-adjust'),
                //             skin: "skin-searchMore skin-overflow",
                //             yes: function() {}
                //         })
                //         $('#initial-adjust-table').bootstrapTable({
                //             uniqueId: "id",
                //             pagination: true, //在表格底部显示分页工具栏
                //             pageSize: 50,
                //             pageNumber: 1,
                //             pageList: [10, 25, 50, 100],
                //             height: 320,
                //             showFooter: true,
                //             showColumns: false,
                //             showRefresh: false,
                //             //                    showToggle:true,
                //             search: false,
                //             //                    showPaginationSwitch:true,
                //             detailView: true,
                //             detailFormatter: page.showdetail,
                //             // detailFormatter: this.showChild,
                //             // onExpandRow: this.expandRow,
                //             // onCollapseRow: this.collapseRow,
                //             locales: 'zh-CN',
                //             fixedColumns: false,
                //             fixedNumber: 1,
                //             url: '../data/erp/tablelist-salesorder-create-child.json',
                //             sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                //             columns: [{
                //                 "field": "n0",
                //                 "title": "序号",
                //                 formatter: function(value, row, index) {
                //                     return index + 1
                //                 },
                //                 footerFormatter: "合计"
                //             }, {
                //                 "field": "n1",
                //                 "title": "定价单据号",
                //             }, {
                //                 "field": "n2",
                //                 "title": "定价模式",
                //             }, {
                //                 "field": "n3",
                //                 "title": "定价名称",
                //             }, {
                //                 "field": "n4",
                //                 "title": "制单日期",
                //             }, {
                //                 "field": "n5",
                //                 "title": "开始日期",
                //             }, {
                //                 "field": "n6",
                //                 "title": "结束日期",
                //             }, {
                //                 "field": "n7",
                //                 "title": "定价品类",
                //                 // footerFormatter: public.fn_sumformatter,
                //             }]
                //         });
                //     })
                //     $(document).on('click', '.btn-select-contract', function() {
                //         layer.open({
                //             type: 1, //page层
                //             area: ['1100px', '560px'],
                //             title: '选择合同',
                //             shadeClose: false,
                //             btn: ['保存', '取消'],
                //             shade: 0.01, //遮罩透明度
                //             moveType: 1, //拖拽风格，0是默认，1是传统拖动
                //             shift: -1, //0-6的动画形式，-1不开启
                //             content: $('.layer-select-contract'),
                //             skin: "skin-searchMore skin-overflow",
                //             yes: function() {}
                //         })
                //         $('#select-contract-table').bootstrapTable({
                //             uniqueId: "id",
                //             pagination: true, //在表格底部显示分页工具栏
                //             pageSize: 50,
                //             pageNumber: 1,
                //             pageList: [10, 25, 50, 100],
                //             height: 320,
                //             showFooter: true,
                //             showColumns: false,
                //             showRefresh: false,
                //             //                    showToggle:true,
                //             search: false,
                //             //                    showPaginationSwitch:true,
                //             // detailView: true,
                //             // detailFormatter: page.showdetail,
                //             // detailFormatter: this.showChild,
                //             // onExpandRow: this.expandRow,
                //             // onCollapseRow: this.collapseRow,
                //             locales: 'zh-CN',
                //             fixedColumns: false,
                //             fixedNumber: 1,
                //             url: '../data/erp/tablelist-salesorder-create-child2.json',
                //             sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                //             columns: [{
                //                 "field": "n0",
                //                 "title": "序号",
                //                 formatter: function(value, row, index) {
                //                     return index + 1
                //                 },
                //                 footerFormatter: "合计"
                //             }, {
                //                 "field": "n1",
                //                 "title": "合同单号",
                //             }, {
                //                 "field": "n2",
                //                 "title": "定价单名称",
                //             }, {
                //                 "field": "n3",
                //                 "title": "制单时间",
                //             }, {
                //                 "field": "n4",
                //                 "title": "购货单位",
                //             }, {
                //                 "field": "n5",
                //                 "title": "业务机构",
                //             }, {
                //                 "field": "n6",
                //                 "title": "业务部门",
                //             }, {
                //                 "field": "n7",
                //                 "title": "合同品类",
                //                 // footerFormatter: public.fn_sumformatter,
                //             }, {
                //                 "field": "n8",
                //                 "title": "合同品名",
                //             }, {
                //                 "field": "n9",
                //                 "title": "合同材质",
                //             }, {
                //                 "field": "n10",
                //                 "title": "合同规格",
                //             }]
                //         });
                //     })
                // },
                // showdetail: function(a, b, c) {
                //     $(c).append(
                //         '<div class="box-body"><table class="table table-condensed innerTable" id="tabledetail' +
                //         a + '"></table></div>');
                //     $('#tabledetail' + a).bootstrapTable({
                //         pagination: false, //在表格底部显示分页工具栏
                //         showFooter: false,
                //         locales: 'zh-CN',
                //         url: '../data/erp/tablelist-salesorder-create-child3.json',
                //         sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）
                //         columns: [{
                //                 "field": "n1",
                //                 "title": "地区"
                //             },
                //             {
                //                 "field": "n2",
                //                 "title": "品名"
                //             },
                //             {
                //                 "field": "n3",
                //                 "title": "价格",
                //             },
                //             {
                //                 "field": "n4",
                //                 "title": "备注"
                //             }
                //         ],

                //     });
                // },
                // 
                autocomplete: function() {
                    var data = ['上海钢找塑料', '上海钢富信息科技有限技有限公司', '上海找油网信息科技', '上海长城实业有限公司',
                        '上海找油网信息科技', '上海长城实业有限公司'
                    ]
                    $("#company input").autocomplete({
                        lookup: data,
                        minChars: 0,
                        appendTo: '#companywrap',
                        onSelect: function(suggestion) {
                            // $(this).val(suggestion.value);
                        },
                    });
                    $("#company1 input").autocomplete({
                        lookup: data,
                        minChars: 0,
                        appendTo: '#companywrap1',
                        onSelect: function(suggestion) {
                            // $(this).val(suggestion.value);
                        },
                    });
                    $("#company2 input").autocomplete({
                        lookup: data,
                        minChars: 0,
                        appendTo: '#companywrap2',
                        onSelect: function(suggestion) {
                            // $(this).val(suggestion.value);
                        },
                    });
                    $("#company3 input").autocomplete({
                        lookup: data,
                        minChars: 0,
                        appendTo: '#companywrap3',
                        onSelect: function(suggestion) {
                            // $(this).val(suggestion.value);
                        },
                    });
                    $("#company4 input").autocomplete({
                        lookup: data,
                        minChars: 0,
                        appendTo: '#companywrap4',
                        onSelect: function(suggestion) {
                            // $(this).val(suggestion.value);
                        },
                    });
                },

                fn_layer: function() {
                    $(document).on('click', '.btn-delete-item', function() {
                        layer.open({
                            type: 1, //page层
                            area: ['400px', 'auto'],
                            title: '提示',
                            shadeClose: false,
                            btn: ['确定'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-delete-item'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {}
                        });
                    })

                    $(document).on('click', '.btn-goods', function() {
                        layer.open({
                            type: 1, //page层
                            area: ['1100px', '580px'],
                            title: '现货物资',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-goods'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {}
                        })
                        $('#layer-table-goods').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-salesreturn-manage-child2.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                checkbox: true,
                            }, {
                                "field": "n1",
                                "title": "提单号",
                            }, {
                                "field": "n2",
                                "title": "制单日期",
                            }, {
                                "field": "n3",
                                "title": "购货单位",
                            }, {
                                "field": "n4",
                                "title": "产品类型",
                            }, {
                                "field": "n5",
                                "title": "件支数",
                            }, {
                                "field": "n6",
                                "title": "品名",
                            }, {
                                "field": "n7",
                                "title": "材质",
                            }, {
                                "field": "n8",
                                "title": "规格",
                            }, {
                                "field": "n9",
                                "title": "指定长度",
                            }, {
                                "field": "n10",
                                "title": "品质",
                            }, {
                                "field": "n11",
                                "title": "计量方式",
                                // footerFormatter: public.fn_sumformatter,
                            }, {
                                "field": "n12",
                                "title": "交货状态",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n13",
                                "title": "应提数量",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n14",
                                "title": "应提重量",
                                // footerFormatter: public.fn_sumformatter,
                            }, {
                                "field": "n15",
                                "title": "含税单价",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n16",
                                "title": "含税金额",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n17",
                                "title": "实提数量",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n18",
                                "title": "实提重量",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n19",
                                "title": "退货数量",
                                // footerFormatter: public.fn_sumformatter,

                            }, {
                                "field": "n20",
                                "title": "退货重量",
                                // footerFormatter: public.fn_sumformatter,

                            }]
                        });
                    })
                },

                // 表格高度
                getHeight: function() {
                    var _height = $('.form-list').outerHeight(
                        true) + $('.operation').outerHeight(true)
                    return $(window).height() - _height - 20;
                },
            }
            page.init();
        })
    })
    </script>
</body>

</html>